//计时器任务
export class TimerTaskModel {
    id: number
    fn: any
    time: number
    disable: boolean
    count: number
    interval: any
    constructor(opts: any = {}) {
        this.id  =opts.id || 0
        this.fn = opts.fn  || null
        this.time = opts.time || 0
        this.interval = opts.interval || null
        this.count = opts.count || 0 //0无数次
        this.disable = opts.disable || false
    }
}

//计时器
export class TimerModel {
    state: number
    timeCount: number
    timeQueue: any
    taskAutoID: number
    timeQueueObject: any
    constructor(opts: any = {}) {
        this.state = opts.state || 0
        this.timeCount =  opts.timeCount || 0
        this.timeQueue = opts.timeQueue || {}
        this.taskAutoID  = 1
        this.timeQueueObject = opts.timeQueueObject || {}
    }
}